<template>
  <div>
    <el-row :gutter="15">
      <el-col :span="14">
        <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px">
          <el-col :span="14">
            <el-form-item label="status" prop="status">
              <el-input v-model="formData.status" placeholder="status" clearable
                prefix-icon="el-icon-user-solid" :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="name" prop="name">
              <el-input v-model="formData.name" placeholder="请输入name" clearable prefix-icon="el-icon-s-shop"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="isvalid" prop="doctisvalidorCode">
              <el-input v-model="formData.isvalid" placeholder="请输入isvalid" clearable prefix-icon="el-icon-phone"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="reason" prop="reason">
              <el-input v-model="formData.reason" placeholder="reason" clearable prefix-icon="el-icon-eleme"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="sex" prop="sex">
              <el-input v-model="formData.sex" placeholder="请输入sex"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="birthday" prop="birthday">
              <el-input v-model="formData.birthday" placeholder="请输入birthday"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="idcard" prop="idcard">
              <el-input v-model="formData.idcard" placeholder="请输入idcard"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="unitname" prop="unitname">
              <el-input v-model="formData.unitname" placeholder="请输入unitname"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="organname" prop="organname">
              <el-input v-model="formData.organname" placeholder="请输入organname"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="unit" prop="unit">
              <el-input v-model="formData.unit" placeholder="请输入unit"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="organ" prop="organ">
              <el-input v-model="formData.organ" placeholder="请输入organ"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="qualification" prop="qualification">
              <el-input v-model="formData.qualification" placeholder="请输入qualification"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="doctorLicence" prop="doctorLicence">
              <el-input v-model="formData.doctorLicence" placeholder="请输入doctorLicence"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="parcticelevel" prop="parcticelevel">
              <el-input v-model="formData.parcticelevel" placeholder="请输入parcticelevel"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="parcticeclass" prop="parcticeclass">
              <el-input v-model="formData.parcticeclass" placeholder="请输入parcticeclass"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="parcticescope" prop="parcticescope">
              <el-input v-model="formData.parcticescope" placeholder="请输入parcticescope"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="registerNumber" prop="registerNumber">
              <el-input v-model="formData.registerNumber" placeholder="请输入registerNumber"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="regionCode" prop="regionCode">
              <el-input v-model="formData.regionCode" placeholder="请输入regionCode"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="regionName" prop="regionName">
              <el-input v-model="formData.regionName" placeholder="请输入regionName"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="hospitalId" prop="hospitalId">
              <el-input v-model="formData.hospitalId" placeholder="请输入hospitalId"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="doctorCode" prop="doctorCode">
              <el-input v-model="formData.doctorCode" placeholder="请输入doctorCode"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="technicalTitle" prop="technicalTitle">
              <el-input v-model="formData.technicalTitle" placeholder="请输入technicalTitle"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="antibiosisAuthority" prop="antibiosisAuthority">
              <el-input v-model="formData.antibiosisAuthority" placeholder="请输入antibiosisAuthority"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="anestheticAuthority" prop="anestheticAuthority">
              <el-input v-model="formData.anestheticAuthority" placeholder="请输入anestheticAuthority"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="mobile" prop="mobile">
              <el-input v-model="formData.mobile" placeholder="请输入mobile"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="workcpet" prop="workcpet">
              <el-input v-model="formData.workcpet" placeholder="请输入workcpet"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          
<el-col :span="14">
            <el-form-item label="antecedent" prop="antecedent">
              <el-input v-model="formData.antecedent" placeholder="请输入antecedent"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="specialty" prop="specialty">
              <el-input v-model="formData.specialty" placeholder="请输入specialty"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="14">
            <el-form-item label="regionname" prop="regionname">
              <el-input v-model="formData.regionname" placeholder="请输入regionname"
                :style="{ width: '30%' }"></el-input>
            </el-form-item>
          </el-col>
          
          
          
          <el-col :span="24">
            <el-form-item size="large">
              <el-button type="primary" @click="submitForm">提交</el-button>
              <el-button @click="resetForm">重置</el-button>
            </el-form-item>
          </el-col>
          
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { addOrderDoc } from "@/api/his/testHD";
export default {
  data() {
    return {
      formData: {
        status: '1',
        reason: '1',
        isvalid: '1',
        name: '张三',
        sex: '男',
        birthday: '2024/02/24',
        unitname: '多执业机构',
        organname: '多审批机关',
        idcard: '52222222',
        unit: '主要执业机构',
        organ: '主要执业机构审批机构',
        technicalTitle: '16313136',
        qualification: "资格证书编码",
        doctorLicence: "执业证书编码",
        parcticelevel: '执业级别',
        parcticeclass: '执业类别',
        parcticescope: '执业范围',
        registerNumber: 'registerNumber',
        regionCode: 'regionCode',
        regionName: 'regionName',
        hospitalId: 'hospitalId',
        doctorCode: 'doctorCode',
        antibiosisAuthority: 1,
        technicalTitle: 'technicalTitle',
        anestheticAuthority: 1,
        mobile: '1312312313',
        workcpet: '任职资格',
        antecedent: '学历',
        specialty: '所学专业',
        regionname: '区划名称',
      },
      rules: {

      },
    };
  },
  methods: {
    submitForm() {
      this.$refs['elForm'].validate(valid => {
        if (valid) {
          addOrderDoc(this.formData)
            .then(response => {
              this.$message({ type: 'success', message: '申请成功!' });

            })
            .catch(error => {
              this.$message.error('提交失败，请重试！');
            });
        }
      });
    },
    resetForm() {
      this.formData = {
        hospitalId: '',
        name: '',
        shortName: '',
        busAddr: '',
        applyEndDate: '',
        nextCheckData: '',
        creditCode: '',
        specialtiesCode: '',
        region: '',
        registerNumber: '',
      };
    },
  },
};
</script>

<style>
/* 样式可以根据需要添加 */
</style>
